<template>
  <div>
    <component :is="curCom" @verify="onVerify" @goVerify="goVerify"></component>
  </div>
</template>

<script>
import list from './list.vue'
import login from './login.vue'
export default {
  data() {
    const { page } = this.$route.query
    return {
      curCom: page || 'list'
    };
  },
  methods: {
    onVerify() {
      this.curCom = 'list'
    },
    goVerify() {
      this.curCom = 'login'
    }
  },
  components: {
    list,
    login,
  }
};
</script>
<style lang="scss" scoped>
</style>